import configparser


class ConfigUtil:
    def __init__(self, config_path):
        print("加载配置文件：" + config_path)
        config = configparser.ConfigParser()
        config.read(config_path, encoding="utf-8")
        self.log_path = config.get("config", "log_path")
        self.server_port = config.get("config", "server_port")

